package cn.ekgc.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Getter
@Setter
@Component
@ToString
public class PrescriptionDetail {

  private long id;
  private long prescriptionId;
  private long registryId;
  private long drugId;
  private long patientId;
  private long amount;
  private long isMedicare;
  private double price;
  private double payPrice;
  private double medicarePrice;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime createdTime;
  private LocalDateTime updatedTime;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getPrescriptionId() {
    return prescriptionId;
  }

  public void setPrescriptionId(long prescriptionId) {
    this.prescriptionId = prescriptionId;
  }


  public long getRegistryId() {
    return registryId;
  }

  public void setRegistryId(long registryId) {
    this.registryId = registryId;
  }


  public long getDrugId() {
    return drugId;
  }

  public void setDrugId(long drugId) {
    this.drugId = drugId;
  }


  public long getPatientId() {
    return patientId;
  }

  public void setPatientId(long patientId) {
    this.patientId = patientId;
  }


  public long getAmount() {
    return amount;
  }

  public void setAmount(long amount) {
    this.amount = amount;
  }


  public long getIsMedicare() {
    return isMedicare;
  }

  public void setIsMedicare(long isMedicare) {
    this.isMedicare = isMedicare;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public double getPayPrice() {
    return payPrice;
  }

  public void setPayPrice(double payPrice) {
    this.payPrice = payPrice;
  }


  public double getMedicarePrice() {
    return medicarePrice;
  }

  public void setMedicarePrice(double medicarePrice) {
    this.medicarePrice = medicarePrice;
  }


  public LocalDateTime getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(LocalDateTime createdTime) {
    this.createdTime = createdTime;
  }


  public LocalDateTime getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(LocalDateTime updatedTime) {
    this.updatedTime = updatedTime;
  }

}
